MacBinary | 1992-03-14 | 5.3 KB | [TEXT/CCL2] |
Confidence | Program | Detection | Match Type | Support |
---|---|---|---|---|
10% | dexvert | MacBinary (archive/macBinary) | fallback | Supported |
1% | dexvert | Text File (text/txt) | fallback | Supported |
100% | file | MacBinary II, inited, Sat Mar 14 10:48:41 1992, modified Sat Mar 14 10:48:41 1992, creator Common Lisp 2, type ASCII, 4573 bytes "select-rectangle.lisp" , at 0x125d 575 bytes resource | default (weak) | |
99% | file | data | default | |
74% | TrID | Macintosh plain text (MacBinary) | default | |
25% | TrID | MacBinary 2 | default (weak) | |
100% | siegfried | fmt/1762 MacBinary (II) | default | |
100% | lsar | MacBinary | default |
id metadata | |
---|---|
key | value |
macFileType | [TEXT] |
macFileCreator | [CCL2] |
+--------+-------------------------+-------------------------+--------+--------+
|00000000| 00 15 73 65 6c 65 63 74 | 2d 72 65 63 74 61 6e 67 |..select|-rectang|
|00000010| 6c 65 2e 6c 69 73 70 00 | 00 00 00 00 00 00 00 00 |le.lisp.|........|
|00000020| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000030| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000040| 00 54 45 58 54 43 43 4c | 32 01 00 00 00 00 00 00 |.TEXTCCL|2.......|
|00000050| 00 00 00 00 00 11 dd 00 | 00 02 3f a5 e7 d0 d9 a5 |........|..?.....|
|00000060| e7 d0 d9 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000070| 00 00 00 00 00 00 00 00 | 00 00 81 81 ee d6 00 00 |........|........|
|00000080| 3b 3b 3b 3b 3b 3b 3b 3b | 3b 3b 3b 3b 3b 3b 3b 3b |;;;;;;;;|;;;;;;;;|
|00000090| 3b 3b 3b 3b 3b 3b 3b 3b | 3b 3b 3b 3b 3b 3b 3b 3b |;;;;;;;;|;;;;;;;;|
|000000a0| 3b 3b 3b 3b 3b 3b 3b 3b | 3b 3b 3b 3b 3b 3b 3b 3b |;;;;;;;;|;;;;;;;;|
|000000b0| 3b 3b 3b 3b 3b 3b 3b 3b | 3b 3b 3b 3b 3b 3b 3b 3b |;;;;;;;;|;;;;;;;;|
|000000c0| 3b 3b 3b 3b 3b 3b 3b 3b | 0d 3b 3b 0d 3b 3b 53 65 |;;;;;;;;|.;;.;;Se|
|000000d0| 6c 65 63 74 2d 52 65 63 | 74 61 6e 67 6c 65 2e 4c |lect-Rec|tangle.L|
|000000e0| 69 73 70 0d 3b 3b 0d 3b | 3b 43 6f 70 79 72 69 67 |isp.;;.;|;Copyrig|
|000000f0| 68 74 20 a9 20 31 39 38 | 37 2d 38 39 2c 20 41 70 |ht . 198|7-89, Ap|
|00000100| 70 6c 65 20 43 6f 6d 70 | 75 74 65 72 2c 20 49 6e |ple Comp|uter, In|
|00000110| 63 0d 3b 3b 0d 3b 3b 0d | 3b 3b 20 20 54 68 69 73 |c.;;.;;.|;; This|
|00000120| 20 66 69 6c 65 20 68 61 | 73 20 73 6f 6d 65 20 65 | file ha|s some e|
|00000130| 78 61 6d 70 6c 65 73 20 | 6f 66 20 6d 61 6b 69 6e |xamples |of makin|
|00000140| 67 20 74 72 61 70 20 63 | 61 6c 6c 73 20 61 6e 64 |g trap c|alls and|
|00000150| 20 75 73 69 6e 67 20 77 | 69 6e 64 6f 77 2e 0d 3b | using w|indow..;|
|00000160| 3b 0d 3b 3b 20 20 49 74 | 20 69 6d 70 6c 65 6d 65 |;.;; It| impleme|
|00000170| 6e 74 73 20 61 20 66 75 | 6e 63 74 69 6f 6e 20 66 |nts a fu|nction f|
|00000180| 6f 72 20 64 72 61 67 67 | 69 6e 67 20 6f 75 74 20 |or dragg|ing out |
|00000190| 61 20 67 72 61 79 20 72 | 65 63 74 61 6e 67 6c 65 |a gray r|ectangle|
|000001a0| 2e 0d 3b 3b 20 20 54 68 | 65 6e 20 69 74 20 73 68 |..;; Th|en it sh|
|000001b0| 6f 77 73 20 68 6f 77 20 | 74 6f 20 75 73 65 20 74 |ows how |to use t|
|000001c0| 68 69 73 20 66 75 6e 63 | 74 69 6f 6e 20 74 6f 20 |his func|tion to |
|000001d0| 63 72 65 61 74 65 20 61 | 20 6e 65 77 20 63 6c 61 |create a| new cla|
|000001e0| 73 73 20 6f 66 20 77 69 | 6e 64 6f 77 73 2e 0d 3b |ss of wi|ndows..;|
|000001f0| 3b 0d 3b 0d 3b 20 20 43 | 68 61 6e 67 65 73 3a 0d |;.;.; C|hanges:.|
|00000200| 3b 0d 3b 32 30 2d 53 65 | 70 2d 39 30 20 6d 63 09 |;.;20-Se|p-90 mc.|
|00000210| 43 68 61 6e 67 65 64 20 | 73 65 6c 65 63 74 2d 72 |Changed |select-r|
|00000220| 65 63 74 61 6e 67 6c 65 | 20 74 6f 20 62 65 20 61 |ectangle| to be a|
|00000230| 20 2a 76 69 65 77 2a 20 | 6d 65 74 68 6f 64 20 61 | *view* |method a|
|00000240| 6e 64 20 63 68 61 6e 67 | 65 64 0d 3b 09 09 20 77 |nd chang|ed.;.. w|
|00000250| 69 74 68 2d 70 6f 72 74 | 20 74 6f 20 77 69 74 68 |ith-port| to with|
|00000260| 2d 66 6f 63 75 73 65 64 | 2d 76 69 65 77 0d 3b 31 |-focused|-view.;1|
|00000270| 30 2d 4f 63 74 2d 39 30 | 20 6d 63 09 48 61 64 20 |0-Oct-90| mc.Had |
|00000280| 74 6f 20 61 64 64 20 77 | 69 74 68 2d 66 6f 63 75 |to add w|ith-focu|
|00000290| 73 65 64 2d 76 69 65 77 | 20 74 6f 0d 3b 09 09 28 |sed-view| to.;..(|
|000002a0| 77 69 6e 64 6f 77 2d 63 | 6c 69 63 6b 2d 65 76 65 |window-c|lick-eve|
|000002b0| 6e 74 2d 68 61 6e 64 6c | 65 72 20 6d 6f 6e 64 72 |nt-handl|er mondr|
|000002c0| 69 61 6e 2d 77 69 6e 64 | 6f 77 29 20 28 77 68 79 |ian-wind|ow) (why|
|000002d0| 20 6e 6f 77 3f 29 2e 0d | 3b 09 09 43 6f 6d 6d 65 | now?)..|;..Comme|
|000002e0| 6e 74 65 64 20 6f 75 74 | 20 6d 6f 6e 64 72 69 61 |nted out| mondria|
|000002f0| 6e 2d 77 69 6e 64 6f 77 | 20 63 6f 64 65 2e 0d 3b |n-window| code..;|
|00000300| 09 09 41 64 64 65 64 20 | 6f 70 74 69 6f 6e 61 6c |..Added |optional|
|00000310| 20 74 68 65 2d 61 6e 63 | 68 6f 72 2d 70 6f 69 6e | the-anc|hor-poin|
|00000320| 74 20 61 72 67 20 74 6f | 20 73 65 6c 65 63 74 2d |t arg to| select-|
|00000330| 72 65 63 74 61 6e 67 6c | 65 2e 0d 3b 09 09 41 64 |rectangl|e..;..Ad|
|00000340| 64 65 64 20 70 72 6f 76 | 69 64 65 2c 20 2a 66 65 |ded prov|ide, *fe|
|00000350| 61 74 75 72 65 73 2a 0d | 3b 32 35 2d 4d 61 79 2d |atures*.|;25-May-|
|00000360| 39 31 20 6d 63 09 43 6f | 6e 76 65 72 74 65 64 20 |91 mc.Co|nverted |
|00000370| 74 6f 20 6d 63 6c 20 32 | 2e 30 62 31 0d 3b 31 34 |to mcl 2|.0b1.;14|
|00000380| 2d 4d 61 72 2d 39 32 20 | 6d 63 09 43 6f 6d 6d 65 |-Mar-92 |mc.Comme|
|00000390| 6e 74 65 64 20 6f 75 74 | 20 74 68 65 20 6c 6f 61 |nted out| the loa|
|000003a0| 64 69 6e 67 20 6f 66 20 | 72 65 63 6f 72 64 73 2e |ding of |records.|
|000003b0| 6c 69 73 70 0d 3b 0d 3b | 3b 0d 0d 28 69 6e 2d 70 |lisp.;.;|;..(in-p|
|000003c0| 61 63 6b 61 67 65 20 22 | 43 43 4c 22 29 0d 0d 28 |ackage "|CCL")..(|
|000003d0| 65 78 70 6f 72 74 20 27 | 28 53 45 4c 45 43 54 2d |export '|(SELECT-|
|000003e0| 52 45 43 54 41 4e 47 4c | 45 29 29 0d 0d 0d 28 70 |RECTANGL|E))...(p|
|000003f0| 75 73 68 6e 65 77 20 3a | 73 65 6c 65 63 74 2d 72 |ushnew :|select-r|
|00000400| 65 63 74 61 6e 67 6c 65 | 20 2a 66 65 61 74 75 72 |ectangle| *featur|
|00000410| 65 73 2a 29 0d 28 70 72 | 6f 76 69 64 65 20 3a 73 |es*).(pr|ovide :s|
|00000420| 65 6c 65 63 74 2d 72 65 | 63 74 61 6e 67 6c 65 29 |elect-re|ctangle)|
|00000430| 0d 0d 0d 3b 3b 3b 3b 3b | 3b 3b 3b 3b 3b 3b 3b 3b |...;;;;;|;;;;;;;;|
|00000440| 3b 3b 3b 3b 3b 0d 3b 3b | 0d 3b 3b 73 65 6c 65 63 |;;;;;.;;|.;;selec|
|00000450| 74 2d 72 65 63 74 61 6e | 67 6c 65 0d 3b 3b 0d 3b |t-rectan|gle.;;.;|
|00000460| 3b 20 20 72 65 74 75 72 | 6e 73 20 6d 75 6c 74 69 |; retur|ns multi|
|00000470| 70 6c 65 20 76 61 6c 75 | 65 73 20 67 69 76 69 6e |ple valu|es givin|
|00000480| 67 20 74 68 65 20 74 77 | 6f 20 63 6f 72 6e 65 72 |g the tw|o corner|
|00000490| 20 70 6f 69 6e 74 73 20 | 6f 66 20 74 68 65 0d 3b | points |of the.;|
|000004a0| 3b 20 20 73 65 6c 65 63 | 74 65 64 20 72 65 63 74 |; selec|ted rect|
|000004b0| 61 6e 67 6c 65 2e 0d 3b | 3b 0d 0d 28 64 65 66 6d |angle..;|;..(defm|
|000004c0| 65 74 68 6f 64 20 73 65 | 6c 65 63 74 2d 72 65 63 |ethod se|lect-rec|
|000004d0| 74 61 6e 67 6c 65 20 28 | 28 73 65 6c 66 20 76 69 |tangle (|(self vi|
|000004e0| 65 77 29 20 26 6f 70 74 | 69 6f 6e 61 6c 20 74 68 |ew) &opt|ional th|
|000004f0| 65 2d 61 6e 63 68 6f 72 | 2d 70 6f 69 6e 74 29 0d |e-anchor|-point).|
|00000500| 20 20 22 54 48 45 2d 41 | 4e 43 48 4f 52 2d 50 4f | "THE-A|NCHOR-PO|
|00000510| 49 4e 54 20 73 70 65 63 | 69 66 69 65 73 20 74 68 |INT spec|ifies th|
|00000520| 65 20 75 70 70 65 72 20 | 6c 65 66 74 20 70 6f 73 |e upper |left pos|
|00000530| 69 74 69 6f 6e 20 66 72 | 6f 6d 20 77 68 69 63 68 |ition fr|om which|
|00000540| 20 74 68 65 20 72 65 63 | 74 0d 77 69 6c 6c 20 62 | the rec|t.will b|
|00000550| 65 20 64 72 61 77 6e 20 | 61 6e 64 20 64 65 66 61 |e drawn |and defa|
|00000560| 75 6c 74 73 20 74 6f 20 | 76 69 65 77 2d 6d 6f 75 |ults to |view-mou|
|00000570| 73 65 2d 70 6f 73 69 74 | 69 6f 6e 2e 22 0d 20 20 |se-posit|ion.". |
|00000580| 3b 3b 0d 20 20 28 77 69 | 74 68 2d 66 6f 63 75 73 |;;. (wi|th-focus|
|00000590| 65 64 2d 76 69 65 77 20 | 73 65 6c 66 0d 20 20 20 |ed-view |self. |
|000005a0| 20 3b 3b 20 54 79 70 65 | 20 63 68 65 63 6b 20 6f | ;; Type| check o|
|000005b0| 70 74 69 6f 6e 61 6c 20 | 61 72 67 73 2e 0d 20 20 |ptional |args.. |
|000005c0| 20 20 28 77 68 65 6e 20 | 28 61 6e 64 20 74 68 65 | (when |(and the|
|000005d0| 2d 61 6e 63 68 6f 72 2d | 70 6f 69 6e 74 0d 20 20 |-anchor-|point. |
|000005e0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 28 6e 6f | | (no|
|000005f0| 74 20 28 69 6e 74 65 67 | 65 72 70 20 74 68 65 2d |t (integ|erp the-|
|00000600| 61 6e 63 68 6f 72 2d 70 | 6f 69 6e 74 29 29 29 0d |anchor-p|oint))).|
|00000610| 20 20 20 20 20 20 28 65 | 72 72 6f 72 20 22 54 68 | (e|rror "Th|
|00000620| 65 2d 61 6e 63 68 6f 72 | 2d 70 6f 69 6e 74 20 7e |e-anchor|-point ~|
|00000630| 53 20 6e 6f 74 20 61 20 | 4d 61 63 69 6e 74 6f 73 |S not a |Macintos|
|00000640| 68 20 70 6f 69 6e 74 20 | 28 69 6e 74 65 67 65 72 |h point |(integer|
|00000650| 29 22 0d 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |)". | |
|00000660| 74 68 65 2d 61 6e 63 68 | 6f 72 2d 70 6f 69 6e 74 |the-anch|or-point|
|00000670| 29 29 0d 20 20 20 20 3b | 3b 0d 20 20 20 20 28 6c |)). ;|;. (l|
|00000680| 65 74 2a 20 28 28 61 6e | 63 68 6f 72 2d 70 6f 69 |et* ((an|chor-poi|
|00000690| 6e 74 20 28 6f 72 20 74 | 68 65 2d 61 6e 63 68 6f |nt (or t|he-ancho|
|000006a0| 72 2d 70 6f 69 6e 74 20 | 28 76 69 65 77 2d 6d 6f |r-point |(view-mo|
|000006b0| 75 73 65 2d 70 6f 73 69 | 74 69 6f 6e 20 73 65 6c |use-posi|tion sel|
|000006c0| 66 29 29 29 0d 20 20 20 | 20 20 20 20 20 20 20 20 |f))). | |
|000006d0| 28 6f 6c 64 2d 6d 6f 75 | 73 65 20 28 76 69 65 77 |(old-mou|se (view|
|000006e0| 2d 6d 6f 75 73 65 2d 70 | 6f 73 69 74 69 6f 6e 20 |-mouse-p|osition |
|000006f0| 73 65 6c 66 29 29 0d 20 | 20 20 20 20 20 20 20 20 |self)). | |
|00000700| 20 20 28 6e 65 77 2d 6d | 6f 75 73 65 20 6f 6c 64 | (new-m|ouse old|
|00000710| 2d 6d 6f 75 73 65 29 29 | 0d 20 20 20 20 20 20 28 |-mouse))|. (|
|00000720| 72 6c 65 74 20 28 28 72 | 20 3a 72 65 63 74 29 0d |rlet ((r| :rect).|
|00000730| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 28 6f 6c | | (ol|
|00000740| 64 2d 70 65 6e 2d 73 74 | 61 74 65 20 3a 70 65 6e |d-pen-st|ate :pen|
|00000750| 73 74 61 74 65 29 29 0d | 20 20 20 20 20 20 20 20 |state)).| |
|00000760| 28 23 5f 47 65 74 50 65 | 6e 53 74 61 74 65 20 3a |(#_GetPe|nState :|
|00000770| 70 74 72 20 6f 6c 64 2d | 70 65 6e 2d 73 74 61 74 |ptr old-|pen-stat|
|00000780| 65 29 0d 20 20 20 20 20 | 20 20 20 28 23 5f 50 65 |e). | (#_Pe|
|00000790| 6e 4d 6f 64 65 20 3a 77 | 6f 72 64 20 28 70 6f 73 |nMode :w|ord (pos|
|000007a0| 69 74 69 6f 6e 20 3a 70 | 61 74 78 6f 72 20 2a 70 |ition :p|atxor *p|
|000007b0| 65 6e 2d 6d 6f 64 65 73 | 2a 29 29 0d 20 20 20 20 |en-modes|*)). |
|000007c0| 20 20 20 20 28 72 73 65 | 74 20 28 77 70 74 72 20 | (rse|t (wptr |
|000007d0| 73 65 6c 66 29 20 67 72 | 61 66 50 6f 72 74 2e 70 |self) gr|afPort.p|
|000007e0| 6e 50 61 74 20 2a 67 72 | 61 79 2d 70 61 74 74 65 |nPat *gr|ay-patte|
|000007f0| 72 6e 2a 29 0d 20 20 20 | 20 20 20 20 20 28 23 5f |rn*). | (#_|
|00000800| 70 74 32 72 65 63 74 20 | 3a 6c 6f 6e 67 20 61 6e |pt2rect |:long an|
|00000810| 63 68 6f 72 2d 70 6f 69 | 6e 74 20 3a 6c 6f 6e 67 |chor-poi|nt :long|
|00000820| 20 6e 65 77 2d 6d 6f 75 | 73 65 20 3a 70 74 72 20 | new-mou|se :ptr |
|00000830| 72 29 0d 20 20 20 20 20 | 20 20 20 28 23 5f 46 72 |r). | (#_Fr|
|00000840| 61 6d 65 52 65 63 74 20 | 3a 70 74 72 20 72 29 0d |ameRect |:ptr r).|
|00000850| 20 20 20 20 20 20 20 20 | 28 6c 6f 6f 70 0d 20 20 | |(loop. |
|00000860| 20 20 20 20 20 20 20 20 | 28 75 6e 6c 65 73 73 20 | |(unless |
|00000870| 28 6d 6f 75 73 65 2d 64 | 6f 77 6e 2d 70 29 20 28 |(mouse-d|own-p) (|
|00000880| 72 65 74 75 72 6e 29 29 | 20 20 20 20 20 3b 72 65 |return))| ;re|
|00000890| 74 75 72 6e 20 77 68 65 | 6e 20 74 68 65 20 6d 6f |turn whe|n the mo|
|000008a0| 75 73 65 20 6c 65 74 73 | 20 75 70 0d 20 20 20 20 |use lets| up. |
|000008b0| 20 20 20 20 20 20 28 75 | 6e 6c 65 73 73 20 28 65 | (u|nless (e|
|000008c0| 71 20 6f 6c 64 2d 6d 6f | 75 73 65 20 6e 65 77 2d |q old-mo|use new-|
|000008d0| 6d 6f 75 73 65 29 0d 20 | 20 20 20 20 20 20 20 20 |mouse). | |
|000008e0| 20 20 20 28 23 5f 46 72 | 61 6d 65 52 65 63 74 20 | (#_Fr|ameRect |
|000008f0| 3a 70 74 72 20 72 29 0d | 20 20 20 20 20 20 20 20 |:ptr r).| |
|00000900| 20 20 20 20 28 23 5f 70 | 74 32 72 65 63 74 20 3a | (#_p|t2rect :|
|00000910| 6c 6f 6e 67 20 61 6e 63 | 68 6f 72 2d 70 6f 69 6e |long anc|hor-poin|
|00000920| 74 20 3a 6c 6f 6e 67 20 | 6e 65 77 2d 6d 6f 75 73 |t :long |new-mous|
|00000930| 65 20 3a 70 74 72 20 72 | 29 0d 20 20 20 20 20 20 |e :ptr r|). |
|00000940| 20 20 20 20 20 20 28 23 | 5f 46 72 61 6d 65 52 65 | (#|_FrameRe|
|00000950| 63 74 20 3a 70 74 72 20 | 72 29 0d 20 20 20 20 20 |ct :ptr |r). |
|00000960| 20 20 20 20 20 20 20 28 | 73 6c 65 65 70 20 31 2f | (|sleep 1/|
|00000970| 36 30 29 0d 20 20 20 20 | 20 20 20 20 20 20 20 20 |60). | |
|00000980| 28 73 65 74 71 20 6f 6c | 64 2d 6d 6f 75 73 65 20 |(setq ol|d-mouse |
|00000990| 6e 65 77 2d 6d 6f 75 73 | 65 29 29 0d 20 20 20 20 |new-mous|e)). |
|000009a0| 20 20 20 20 20 20 28 73 | 65 74 71 20 6e 65 77 2d | (s|etq new-|
|000009b0| 6d 6f 75 73 65 20 28 76 | 69 65 77 2d 6d 6f 75 73 |mouse (v|iew-mous|
|000009c0| 65 2d 70 6f 73 69 74 69 | 6f 6e 20 73 65 6c 66 29 |e-positi|on self)|
|000009d0| 29 29 0d 20 20 20 20 20 | 20 20 20 28 23 5f 46 72 |)). | (#_Fr|
|000009e0| 61 6d 65 52 65 63 74 20 | 3a 70 74 72 20 72 29 0d |ameRect |:ptr r).|
|000009f0| 20 20 20 20 20 20 20 20 | 28 23 5f 53 65 74 50 65 | |(#_SetPe|
|00000a00| 6e 53 74 61 74 65 20 3a | 70 74 72 20 6f 6c 64 2d |nState :|ptr old-|
|00000a10| 70 65 6e 2d 73 74 61 74 | 65 29 0d 20 20 20 20 20 |pen-stat|e). |
|00000a20| 20 20 20 28 76 61 6c 75 | 65 73 20 28 72 72 65 66 | (valu|es (rref|
|00000a30| 20 72 20 72 65 63 74 2e | 74 6f 70 6c 65 66 74 29 | r rect.|topleft)|
|00000a40| 0d 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |. | |
|00000a50| 20 28 72 72 65 66 20 72 | 20 72 65 63 74 2e 62 6f | (rref r| rect.bo|
|00000a60| 74 74 6f 6d 72 69 67 68 | 74 29 29 29 29 29 29 0d |ttomrigh|t)))))).|
|00000a70| 0d 0d 23 7c 0d 3b 3b 3b | 3b 3b 3b 3b 3b 3b 3b 3b |..#|.;;;|;;;;;;;;|
|00000a80| 3b 3b 3b 3b 3b 3b 3b 3b | 3b 0d 3b 3b 0d 3b 3b 20 |;;;;;;;;|;.;;.;; |
|00000a90| 6d 6f 6e 64 72 69 61 6e | 2d 77 69 6e 64 6f 77 0d |mondrian|-window.|
|00000aa0| 3b 3b 0d 3b 3b 20 20 61 | 20 63 6c 61 73 73 20 6f |;;.;; a| class o|
|00000ab0| 66 20 77 69 6e 64 6f 77 | 73 20 74 68 61 74 20 6c |f window|s that l|
|00000ac0| 65 74 73 20 79 6f 75 20 | 64 72 61 77 20 72 65 63 |ets you |draw rec|
|00000ad0| 74 61 6e 67 6c 65 20 70 | 69 63 74 75 72 65 73 0d |tangle p|ictures.|
|00000ae0| 0d 28 64 65 66 63 6c 61 | 73 73 20 6d 6f 6e 64 72 |.(defcla|ss mondr|
|00000af0| 69 61 6e 2d 76 69 65 77 | 20 28 76 69 65 77 29 0d |ian-view| (view).|
|00000b00| 20 20 28 29 29 0d 0d 28 | 64 65 66 6d 65 74 68 6f | ())..(|defmetho|
|00000b10| 64 20 76 69 65 77 2d 63 | 6c 69 63 6b 2d 65 76 65 |d view-c|lick-eve|
|00000b20| 6e 74 2d 68 61 6e 64 6c | 65 72 20 28 28 73 65 6c |nt-handl|er ((sel|
|00000b30| 66 20 6d 6f 6e 64 72 69 | 61 6e 2d 76 69 65 77 29 |f mondri|an-view)|
|00000b40| 20 77 68 65 72 65 29 0d | 20 20 28 64 65 63 6c 61 | where).| (decla|
|00000b50| 72 65 20 28 69 67 6e 6f | 72 65 20 77 68 65 72 65 |re (igno|re where|
|00000b60| 29 29 0d 20 20 3b 3b 0d | 20 20 28 6d 75 6c 74 69 |)). ;;.| (multi|
|00000b70| 70 6c 65 2d 76 61 6c 75 | 65 2d 62 69 6e 64 20 28 |ple-valu|e-bind (|
|00000b80| 74 6f 70 6c 65 66 74 20 | 62 6f 74 74 6f 6d 72 69 |topleft |bottomri|
|00000b90| 67 68 74 29 20 28 73 65 | 6c 65 63 74 2d 72 65 63 |ght) (se|lect-rec|
|00000ba0| 74 61 6e 67 6c 65 20 73 | 65 6c 66 20 3b 23 40 28 |tangle s|elf ;#@(|
|00000bb0| 31 30 30 20 31 30 30 29 | 0d 20 20 20 20 20 20 20 |100 100)|. |
|00000bc0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00000bd0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00000be0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00000bf0| 20 20 20 20 20 20 20 20 | 29 0d 20 20 20 20 28 72 | |). (r|
|00000c00| 6c 65 74 20 28 28 6d 79 | 2d 72 65 63 74 20 3a 72 |let ((my|-rect :r|
|00000c10| 65 63 74 29 29 0d 20 20 | 20 20 20 20 28 72 73 65 |ect)). | (rse|
|00000c20| 74 20 6d 79 2d 72 65 63 | 74 20 72 65 63 74 2e 74 |t my-rec|t rect.t|
|00000c30| 6f 70 6c 65 66 74 20 74 | 6f 70 6c 65 66 74 29 0d |opleft t|opleft).|
|00000c40| 20 20 20 20 20 20 28 72 | 73 65 74 20 6d 79 2d 72 | (r|set my-r|
|00000c50| 65 63 74 20 72 65 63 74 | 2e 62 6f 74 74 6f 6d 72 |ect rect|.bottomr|
|00000c60| 69 67 68 74 20 62 6f 74 | 74 6f 6d 72 69 67 68 74 |ight bot|tomright|
|00000c70| 29 0d 20 20 20 20 20 20 | 28 77 69 74 68 2d 66 6f |). |(with-fo|
|00000c80| 63 75 73 65 64 2d 76 69 | 65 77 20 73 65 6c 66 0d |cused-vi|ew self.|
|00000c90| 20 20 20 20 20 20 20 20 | 28 23 5f 49 6e 76 65 72 | |(#_Inver|
|00000ca0| 74 52 65 63 74 20 3a 70 | 74 72 20 6d 79 2d 72 65 |tRect :p|tr my-re|
|00000cb0| 63 74 29 29 29 29 29 0d | 0d 28 64 65 66 63 6c 61 |ct))))).|.(defcla|
|00000cc0| 73 73 20 6d 6f 6e 64 72 | 69 61 6e 2d 77 69 6e 64 |ss mondr|ian-wind|
|00000cd0| 6f 77 20 28 6d 6f 6e 64 | 72 69 61 6e 2d 76 69 65 |ow (mond|rian-vie|
|00000ce0| 77 20 77 69 6e 64 6f 77 | 29 0d 20 20 28 29 29 0d |w window|). ()).|
|00000cf0| 0d 28 6d 61 6b 65 2d 69 | 6e 73 74 61 6e 63 65 20 |.(make-i|nstance |
|00000d00| 27 6d 6f 6e 64 72 69 61 | 6e 2d 77 69 6e 64 6f 77 |'mondria|n-window|
|00000d10| 29 0d 0d 0d 3b 3b 3b 3b | 3b 3b 3b 3b 3b 3b 3b 3b |)...;;;;|;;;;;;;;|
|00000d20| 3b 3b 3b 3b 3b 3b 3b 3b | 0d 3b 3b 0d 3b 3b 20 53 |;;;;;;;;|.;;.;; S|
|00000d30| 65 6c 65 63 74 69 6e 67 | 2d 73 63 72 6f 6c 6c 65 |electing|-scrolle|
|00000d40| 72 0d 3b 3b 0d 3b 3b 20 | 20 41 20 63 6c 61 73 73 |r.;;.;; | A class|
|00000d50| 20 6f 66 20 77 69 6e 64 | 6f 77 73 20 74 68 61 74 | of wind|ows that|
|00000d60| 20 74 65 73 74 73 20 73 | 65 6c 65 63 74 2d 72 65 | tests s|elect-re|
|00000d70| 63 74 61 6e 67 6c 65 20 | 6f 6e 20 6e 65 73 74 65 |ctangle |on neste|
|00000d80| 64 20 73 63 72 6f 6c 6c | 65 72 73 2e 0d 0d 28 72 |d scroll|ers...(r|
|00000d90| 65 71 75 69 72 65 20 22 | 53 43 52 4f 4c 4c 45 52 |equire "|SCROLLER|
|00000da0| 53 22 29 0d 0d 0d 28 64 | 65 66 63 6c 61 73 73 20 |S")...(d|efclass |
|00000db0| 73 63 72 6f 6c 6c 65 72 | 32 20 28 73 63 72 6f 6c |scroller|2 (scrol|
|00000dc0| 6c 65 72 20 6d 6f 6e 64 | 72 69 61 6e 2d 76 69 65 |ler mond|rian-vie|
|00000dd0| 77 29 20 28 29 29 0d 0d | 28 64 65 66 6d 65 74 68 |w) ())..|(defmeth|
|00000de0| 6f 64 20 73 63 72 6f 6c | 6c 2d 62 61 72 2d 6c 69 |od scrol|l-bar-li|
|00000df0| 6d 69 74 73 20 28 28 76 | 69 65 77 20 73 63 72 6f |mits ((v|iew scro|
|00000e00| 6c 6c 65 72 32 29 29 0d | 20 20 28 6e 6f 72 6d 61 |ller2)).| (norma|
|00000e10| 6c 2d 73 63 72 6f 6c 6c | 2d 62 61 72 2d 6c 69 6d |l-scroll|-bar-lim|
|00000e20| 69 74 73 20 76 69 65 77 | 20 33 30 30 20 33 30 30 |its view| 300 300|
|00000e30| 29 29 0d 0d 28 64 65 66 | 6d 65 74 68 6f 64 20 76 |))..(def|method v|
|00000e40| 69 65 77 2d 64 72 61 77 | 2d 63 6f 6e 74 65 6e 74 |iew-draw|-content|
|00000e50| 73 20 28 28 73 65 6c 66 | 20 73 63 72 6f 6c 6c 65 |s ((self| scrolle|
|00000e60| 72 32 29 29 0d 20 20 28 | 66 72 61 6d 65 2d 72 65 |r2)). (|frame-re|
|00000e70| 63 74 20 73 65 6c 66 20 | 31 31 30 20 31 30 20 31 |ct self |110 10 1|
|00000e80| 37 30 20 31 37 30 29 0d | 20 20 28 63 61 6c 6c 2d |70 170).| (call-|
|00000e90| 6e 65 78 74 2d 6d 65 74 | 68 6f 64 29 29 0d 0d 28 |next-met|hod))..(|
|00000ea0| 64 65 66 63 6c 61 73 73 | 20 73 63 72 6f 6c 6c 65 |defclass| scrolle|
|00000eb0| 72 33 20 28 73 63 72 6f | 6c 6c 65 72 20 6d 6f 6e |r3 (scro|ller mon|
|00000ec0| 64 72 69 61 6e 2d 76 69 | 65 77 29 20 28 29 29 0d |drian-vi|ew) ()).|
|00000ed0| 0d 28 64 65 66 6d 65 74 | 68 6f 64 20 73 63 72 6f |.(defmet|hod scro|
|00000ee0| 6c 6c 2d 62 61 72 2d 6c | 69 6d 69 74 73 20 28 28 |ll-bar-l|imits ((|
|00000ef0| 76 69 65 77 20 73 63 72 | 6f 6c 6c 65 72 33 29 29 |view scr|oller3))|
|00000f00| 0d 20 20 28 6e 6f 72 6d | 61 6c 2d 73 63 72 6f 6c |. (norm|al-scrol|
|00000f10| 6c 2d 62 61 72 2d 6c 69 | 6d 69 74 73 20 76 69 65 |l-bar-li|mits vie|
|00000f20| 77 20 31 37 30 20 31 37 | 30 29 29 0d 0d 28 64 65 |w 170 17|0))..(de|
|00000f30| 66 6d 65 74 68 6f 64 20 | 76 69 65 77 2d 64 72 61 |fmethod |view-dra|
|00000f40| 77 2d 63 6f 6e 74 65 6e | 74 73 20 28 28 73 65 6c |w-conten|ts ((sel|
|00000f50| 66 20 73 63 72 6f 6c 6c | 65 72 33 29 29 0d 20 20 |f scroll|er3)). |
|00000f60| 28 70 61 69 6e 74 2d 6f | 76 61 6c 20 73 65 6c 66 |(paint-o|val self|
|00000f70| 20 31 30 20 31 30 20 37 | 30 20 37 30 29 0d 20 20 | 10 10 7|0 70). |
|00000f80| 28 70 61 69 6e 74 2d 6f | 76 61 6c 20 73 65 6c 66 |(paint-o|val self|
|00000f90| 20 37 30 20 37 30 20 31 | 37 30 20 31 37 30 29 0d | 70 70 1|70 170).|
|00000fa0| 20 20 28 63 61 6c 6c 2d | 6e 65 78 74 2d 6d 65 74 | (call-|next-met|
|00000fb0| 68 6f 64 29 29 0d 0d 28 | 6c 65 74 2a 20 28 28 64 |hod))..(|let* ((d|
|00000fc0| 69 61 6c 20 28 6d 61 6b | 65 2d 69 6e 73 74 61 6e |ial (mak|e-instan|
|00000fd0| 63 65 20 27 64 69 61 6c | 6f 67 29 29 0d 20 20 20 |ce 'dial|og)). |
|00000fe0| 20 20 20 20 28 66 69 72 | 73 74 2d 73 63 72 6f 6c | (fir|st-scrol|
|00000ff0| 6c 65 72 20 28 6d 61 6b | 65 2d 69 6e 73 74 61 6e |ler (mak|e-instan|
|00001000| 63 65 20 27 73 63 72 6f | 6c 6c 65 72 32 0d 20 20 |ce 'scro|ller2. |
|00001010| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00001020| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00001030| 20 20 20 20 3a 76 69 65 | 77 2d 63 6f 6e 74 61 69 | :vie|w-contai|
|00001040| 6e 65 72 20 64 69 61 6c | 0d 20 20 20 20 20 20 20 |ner dial|. |
|00001050| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00001060| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 3a | | :|
|00001070| 76 69 65 77 2d 73 69 7a | 65 20 23 40 28 31 38 30 |view-siz|e #@(180|
|00001080| 20 31 38 30 29 0d 20 20 | 20 20 20 20 20 20 20 20 | 180). | |
|00001090| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000010a0| 20 20 20 20 20 20 20 20 | 20 20 20 20 3a 76 69 65 | | :vie|
|000010b0| 77 2d 70 6f 73 69 74 69 | 6f 6e 20 23 40 28 35 20 |w-positi|on #@(5 |
|000010c0| 35 29 0d 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |5). | |
|000010d0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000010e0| 20 20 20 20 20 20 20 20 | 20 3a 74 72 61 63 6b 2d | | :track-|
|000010f0| 74 68 75 6d 62 2d 70 20 | 74 29 29 0d 20 20 20 20 |thumb-p |t)). |
|00001100| 20 20 20 28 73 65 63 6f | 6e 64 2d 73 63 72 6f 6c | (seco|nd-scrol|
|00001110| 6c 65 72 20 28 6d 61 6b | 65 2d 69 6e 73 74 61 6e |ler (mak|e-instan|
|00001120| 63 65 20 27 73 63 72 6f | 6c 6c 65 72 33 0d 20 20 |ce 'scro|ller3. |
|00001130| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00001140| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00001150| 20 20 20 20 20 3a 76 69 | 65 77 2d 63 6f 6e 74 61 | :vi|ew-conta|
|00001160| 69 6e 65 72 20 66 69 72 | 73 74 2d 73 63 72 6f 6c |iner fir|st-scrol|
|00001170| 6c 65 72 0d 20 20 20 20 | 20 20 20 20 20 20 20 20 |ler. | |
|00001180| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00001190| 20 20 20 20 20 20 20 20 | 20 20 20 3a 76 69 65 77 | | :view|
|000011a0| 2d 73 69 7a 65 20 23 40 | 28 37 35 20 31 35 35 29 |-size #@|(75 155)|
|000011b0| 0d 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |. | |
|000011c0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000011d0| 20 20 20 20 20 20 20 20 | 3a 76 69 65 77 2d 70 6f | |:view-po|
|000011e0| 73 69 74 69 6f 6e 20 23 | 40 28 31 30 20 31 30 29 |sition #|@(10 10)|
|000011f0| 0d 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |. | |
|00001200| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00001210| 20 20 20 20 20 20 20 20 | 3a 74 72 61 63 6b 2d 74 | |:track-t|
|00001220| 68 75 6d 62 2d 70 20 74 | 29 29 29 0d 20 20 28 6c |humb-p t|))). (l|
|00001230| 69 73 74 20 64 69 61 6c | 20 66 69 72 73 74 2d 73 |ist dial| first-s|
|00001240| 63 72 6f 6c 6c 65 72 20 | 73 65 63 6f 6e 64 2d 73 |croller |second-s|
|00001250| 63 72 6f 6c 6c 65 72 29 | 29 0d 0d 7c 23 00 00 00 |croller)|)..|#...|
|00001260| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001270| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001280| 00 00 01 00 00 00 01 ed | 00 00 00 ed 00 00 00 52 |........|.......R|
|00001290| 00 00 53 34 0b 50 72 65 | 66 65 72 65 6e 63 65 73 |..S4.Pre|ferences|
|000012a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000012b0| 15 73 65 6c 65 63 74 2d | 72 65 63 74 61 6e 67 6c |.select-|rectangl|
|000012c0| 65 2e 6c 69 73 70 02 00 | 00 00 54 45 58 54 43 43 |e.lisp..|..TEXTCC|
|000012d0| 00 00 54 45 58 54 43 43 | 4c 32 01 00 00 3c 01 20 |..TEXTCC|L2...<. |
|000012e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000012f0| 00 00 a2 07 36 82 00 00 | 11 dd 00 00 02 3f 00 00 |....6...|.....?..|
|00001300| 00 00 00 00 00 00 00 00 | 00 00 03 87 25 00 00 00 |........|....%...|
|00001310| 53 34 16 57 6f 72 64 20 | 46 69 6e 64 65 72 a8 20 |S4.Word |Finder. |
|00001320| 54 68 65 73 61 75 72 75 | 73 00 00 00 00 00 00 00 |Thesauru|s.......|
|00001330| 00 00 00 00 00 99 25 00 | 00 00 53 34 11 57 6f 72 |......%.|..S4.Wor|
|00001340| 64 20 53 65 74 74 69 6e | 67 73 20 28 34 29 00 00 |d Settin|gs (4)..|
|00001350| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 04 32 |........|.......2|
|00001360| 25 00 00 00 53 34 0b 57 | 6f 72 64 20 54 65 6d 70 |%...S4.W|ord Temp|
|00001370| 20 33 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 | 3......|........|
|00001380| 00 00 00 82 00 03 00 04 | 09 00 00 04 09 04 00 03 |........|........|
|00001390| 09 01 01 00 00 00 02 00 | 01 77 01 00 01 7f 03 00 |........|.w......|
|000013a0| 01 98 01 00 01 a8 03 00 | 02 20 01 00 02 3a 03 00 |........|. ...:..|
|000013b0| 02 a9 01 00 02 b9 03 00 | 04 46 01 00 04 56 03 00 |........|.F...V..|
|000013c0| 0a 6b 01 00 0a 78 03 00 | 0a 92 01 00 0a aa 03 00 |.k...x..|........|
|000013d0| 0c 43 01 00 0c 52 03 00 | 0d 30 01 00 0d 39 03 00 |.C...R..|.0...9..|
|000013e0| 0d 63 01 00 0d 74 03 00 | 0d bf 01 00 0d d1 03 00 |.c...t..|........|
|000013f0| 0e 29 01 00 0e 32 03 00 | 0e 5c 01 00 0e 6d 03 00 |.)...2..|.\...m..|
|00001400| 0e b8 01 00 0e ca 00 00 | 00 17 00 00 06 4d 6f 6e |........|.....Mon|
|00001410| 61 63 6f 06 4d 6f 6e 61 | 63 6f 06 47 65 6e 65 76 |aco.Mona|co.Genev|
|00001420| 61 00 00 00 48 00 09 4d | 6f 6e 61 63 6f 00 00 00 |a...H..M|onaco...|
|00001430| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001440| 00 00 00 00 00 00 00 00 | 06 00 08 00 29 00 03 01 |........|....)...|
|00001450| de 02 00 00 29 00 03 01 | de 02 00 00 00 00 00 00 |....)...|........|
|00001460| 00 03 34 00 00 03 34 00 | 00 00 00 01 00 00 00 01 |..4...4.|........|
|00001470| 00 00 00 01 ed 00 00 00 | ed 00 00 00 52 00 12 51 |........|....R..Q|
|00001480| 9c 07 b8 00 00 00 1c 00 | 52 00 01 46 52 45 44 00 |........|R..FRED.|
|00001490| 01 00 12 4d 50 53 52 00 | 00 00 2a 00 02 ff ff 00 |...MPSR.|..*.....|
|000014a0| 00 00 00 00 00 00 00 00 | 03 ff ff 00 00 00 86 00 |........|........|
|000014b0| 00 00 00 03 ed ff ff 00 | 00 00 a1 00 13 3d 68 00 |........|.....=h.|
|000014c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000014d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000014e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000014f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
+--------+-------------------------+-------------------------+--------+--------+